package task3

class Department implements Serializable {
    String name

    static hasMany = [projects: Project]

    static mapping={
        projects lazy:false
    }
    static constraints = {
        name(size: 3..20, blank: false, unique:true)
    }
    String toString(){
        "${name}"
    }
}
